package org.example.zuoye.service;

import com.github.pagehelper.PageInfo;
import org.example.zuoye.entity.Account;
import org.example.zuoye.entity.Admin;

import java.util.List;

/**
 * @Author xinchen
 * @Date: 2024/08/10/ 16:01
 * @Description
 */
public interface AdminService {

    /**
     * 分页查询
     */
    PageInfo searchByPage(Integer page, Integer limit, Admin admin);

    /**
     * 添加
     */
    int add(Admin admin) throws Exception;

    /**
     * 删除
     */
    int remove(Integer[] ids) throws Exception;

    int edit(Admin admin) throws Exception;

    Admin findByUsername(String username);
}
